﻿using ORS.OrderRobot.ServiceContracts.Dtos;

namespace ORS.OrderRobot.ServiceContracts
{
	/// <summary>
	/// 商品下单服务
	/// </summary>
	public interface IShoppingService
	{
		/// <summary>
		/// 尝试加入购物车（试探模式）
		/// </summary>
		/// <param name="input"></param>
		/// <returns>不报异常表示添加购物车成功</returns>
		Task TryAddBasket(ShoppingInput input);
		/// <summary>
		/// 常规下单模式
		/// </summary>
		/// <param name="input"></param>
		/// <returns></returns>
		Task ShoppingAsync(ShoppingInput input);
		/// <summary>
		/// 设置下单依赖信息
		/// </summary>
		/// <param name="email"></param>
		/// <returns></returns>
		Task SetShoppingDepInfoAsync(string email);

	}
}

